package com.seal.commons.infrastructure.redis.serialize;


import com.seal.commons.infrastructure.redis.exception.SerializationException;

/**
 * 功能描述: redis序列化 <br/>
 *
 * @author yong.huang
 * @date: 2020-07-18 11:14<br/>
 * @since JDK 1.8
 */
public interface RedisSerializer<T> {

    byte[] serialize(T var1) throws SerializationException;

    T deserialize(byte[] var1) throws SerializationException;
}